import org.w3c.dom.ls.LSOutput;

interface Inter {
    void func();
}
public class Test3 {

    public static void main(String[] args) {

        Inter aaa = new Inter() {
            @Override
            public void func() {
                System.out.println("我是重写的方法");
            }
        };
        aaa.func();

    }
}
